#include<iostream>
using std::endl;
using std::cout;

//成员函数模板
class Point{
public:
    Point(double x,double y)
    :_x(x)
    ,_y(y)
    {
        cout<<"Point"<<endl;
    }
    //成员模板函数
    template <class T>
    T corvent(){
        return (T)_x;
    }
private:
    double _x;
    double _y;
};

int main(void){

    Point p1(1.1,2);
    cout<<p1.corvent<char>()<<endl;

}